
<?
	 layout("/inc/win_layout.html",{title:sysTitle}){
    ?>
    <link rel="stylesheet" href="static/uploadify/uploadify.css" type="text/css"></link>
<script type="text/javascript" src="static/uploadify/jquery.uploadify.min.js"></script>
<div id="page-wrapper" style="margin-left: 0px; ">

	<!--BEGIN CONTENT-->
	<div class="page-content"
		style="min-height: auto;padding-bottom: 20px; height: 610px; overflow: auto;">

		<div class="row mbl">

<div class="panel ">
	<div class="panel-body pan">

		<div class="row" style="margin-bottom: 10px;">
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-left:-13px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">用户名
					<span class='require' id="yonghu">*</span> </label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="username" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
					style="width: 400px; float:left; margin-right:-20px; display:inline;">
					<label for="inputUsername" class="col-md-3 control-label">&nbsp;
					</label>
					<div class="col-md-9">
						<div class="input-icon" id="balancePayment">
							
						</div>
					</div>
			</div>
		</div>
		<div class="row" style="margin-bottom: 10px;">
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-left:-13px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">邮箱
				</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="email" type="text" class="form-control" disabled="true"/>
					</div>
				</div>
			</div>
			
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-left:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">真实姓名</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="realname" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-left:-13px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">昵称
					 </label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="nickname" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="row" style="margin-bottom: 10px;">
						<div class="col-lg-6"
							style="width: 400px; float:left; margin-left:-22px;display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">联系电话
								<span class='require'></span></label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="telephone" type="text" class="form-control" value="" disabled="true"/>
								</div>
							</div>
						</div>
		<div class="col-lg-6"
				style="width: 370px; float:left; margin-left:15px;display:inline;">
				<label for="inputUsername" class="col-sd-4 control-label">手机号</label>
				<div class="col-sd-8">
					<div class="input-icon">
						<input id="mobilephone" type="text" class="form-control" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-left:-6px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">用户类型
				<span class='require' id="yonghu">*</span> </label>
				<div class="col-md-9">
					<div class="input-icon">
						<select id="type" class="form-control" disabled="true">
							<option value="0">个人用户</option>
						</select>
					</div>
				</div>
			</div>
	
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">创建IP地址
					<span class='require' id="yonghu">*</span> </label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="createIpAddress" type="text" class="form-control"  disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6" style="width: 400px; float:left; margin-right:-20px;display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">头像
				</label>
				<div class="col-md-9">
					<div class="input-icon">
						<div style="display:inline " id="single"></div>
						<input id="avatarImg" type="hidden" class="form-control" value="" />
					</div>
				</div>
			</div>
			<div class="col-lg-6" style="width: 400px; float:left; margin-right:-20px;display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">地址
				</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="address" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">秘钥</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="keys" type="text" class="form-control"  disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left;  margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">学历</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="education" onchange="onPanduan(this.value);"
							type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-right:-20px;  display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">专业</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="profession" class="form-control" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">证件类型
				<span class='require' id="yonghu">*</span> </label>
				<div class="col-md-9">
					<div class="input-icon">
						<select id="certificateType" class="form-control" disabled="true">
							<option value="0">身份证</option>
							<option value="1">军官证</option>
							<option value="2">护照</option>
							<option value="3">其他</option>
						</select>
					</div>
				</div>
			</div>

			
			<div class="col-lg-6" style="width: 400px; float:left; margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">证件号</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="certificateNumber" class="form-control" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px; float:left; margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">工作单位</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="workunit" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
			<div class="col-lg-6"
				style="width: 400px;  float:left;margin-right:-20px; display:inline;">
				<label for="inputUsername" class="col-md-3 control-label">职称
				</label>
				<div class="col-md-9">
					<div class="input-icon">
						<input id="title" type="text" class="form-control" value="" disabled="true"/>
					</div>
				</div>
			</div>
				<div class="col-lg-6"
					style="width: 400px; float:left; margin-right:-20px; display:inline;">
					<label for="inputUsername" class="col-md-3 control-label">状态
						<span class='require'>*</span> </label>
					<div class="col-md-9">
						<div class="input-icon">
							<select id="status" class="form-control" disabled="true">
								<option value="0">启用</option>
								<option value="1">禁用</option>
							</select>
						</div>
					</div>
				</div>
				<div class="col-lg-6"
					style="width: 400px; float:left; margin-right:-20px; display:inline;">
					<label for="inputUsername" class="col-md-3 control-label">性别
						<span class='require'>*</span> </label>
					<div class="col-md-9">
						<div class="input-icon">
							<select id="gender" class="form-control" disabled="true">
								<option value="0">女</option>
								<option value="1">男</option>
								<option value="2">未知</option>
							</select>
						</div>
					</div>
				</div>
				<div class="col-lg-6"
				style="width: 400px;  float:left;margin-right:-20px; display:inline;">
					<label for="inputUsername" class="col-md-3 control-label">年龄
					    <span class='require'>*</span></label>
					<div class="col-md-9">
						<div class="input-icon">
							<input id="age" type="text" class="form-control" value="" disabled="true"/>
						</div>
					</div>
				</div>
				
			</div>
			<div style="margin-bottom: 10px;">
					<label for="inputUsername" class="col-md-3 control-label">研究领域
						<span class='require'></span> </label>
					<div class="col-md-12">
						<div class="input-icon">
							<textarea id="researchField"  rows="2" cols="20" class="form-control" disabled="true"></textarea> 
						</div>
					</div>
				</div>
				<div class="row" style="margin-bottom: 10px;">
					<div class="col-lg-6"
							style="width: 400px; float:left;  margin-right:-20px; display:inline;">
							<label for="inputUsername" class="col-md-3 control-label">有效期<span class='require'>*</span></label>
							<div class="col-md-9">
								<div class="input-icon">
									<input id="validity" type="text" class="form-control" value=""disabled="true" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" />
								</div>
							</div>
						</div>
				</div>
		</div>
	</div>
</div>
</div>
</div>
<?} ?>
<script>
	var index1 = window.parent.getlay();
	$(function() {
		
		if(index1 != 0){
			$.ajax({
			type : "post",
			url : "./memberSelect.do",
			data : {
				"id" : index1,
			},
			dataType : "json",
			async : false,
			success : function(data) {
				$("#username").val(data[0].username);
				$("#password").val(data[0].password);
				$("#nickname").val(data[0].nickname);
				$("#realname").val(data[0].realname);
				$("#type").val(data[0].type);
				$("#createTime").val(data[0].createTime);
				$("#createIpAddress").val(data[0].createIpAddress);
				$("#avatarImg").val(data[0].avatarImg);
				$("#single").html("<img src='"+data[0].avatarImg+"' width='30' height='30'/>");
				$("#email").val(data[0].email);
				$("#education").val(data[0].education);
				$("#profession").val(data[0].profession);
				$("#researchField").val(data[0].researchField);
				$("#status").val(data[0].status);
				$("#mobilephone").val(data[0].mobilephone);
				$("#workunit").val(data[0].workunit);
				$("#title").val(data[0].title);
				$("#certificateType").val(data[0].certificateType);
				$("#certificateNumber").val(data[0].certificateNumber);
				$("#balancePayment").html("<h4>当前余额："+data[0].balance+"&nbsp;&nbsp;&nbsp;&nbsp;支付总金额："+data[0].payment+"</h4>");
				$("#age").val(data[0].age);
				$("#gender").val(data[0].gender);
				$("#keys").val(data[0].keys);
				$("#address").val(data[0].address);
				$("#telephone").val(data[0].telephone);
				$("#validity").val(data[0].validity);
			},
			error : function(data) {
				alert("请求失败");
			}
		});
		}
	});
	
	function newdate() {
		$.getJSON('./newDate.do', {}, function(res) {
			$("#createTime").val(res.date);
		});
	};
	function save(){
		var index = parent.layer.getFrameIndex(window.name);
				parent.layer.close(index);
	}
	
</script>


